﻿

#region Using Statements

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Xml;
using System.Xml.Serialization;
using System.Threading;
using System.ComponentModel;
using System.Reflection;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Design;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

using Freeform;
using FGame = Freeform.Game;
using XGame = Microsoft.Xna.Framework.Game;
using FComponent = Freeform.Component;

#endregion


namespace Freeform
{
    /// <summary>
    /// Actors are used to graphically represent a body through a viewport.
    /// </summary>
    public class Actor3D
    {

        #region Members

        /// <summary>
        /// Gets the entity that this actor represents.
        /// </summary>
        public Entity3D Entity { get; private set; }


        /// <summary>
        /// Gets or sets the colour overlay of the actor.
        /// </summary>
        public Color ColourOverlay { get; set; }

        #endregion


        #region Init

        /// <summary>
        /// Creates a new Actor.
        /// </summary>
        /// <param name="Entity">The entity that this actor will represent.</param>
        public Actor3D(Entity3D Entity) 
        {
            this.Entity = Entity;
            ColourOverlay = Color.White;
            Entity.Actor = this;
        }

        #endregion
        

        #region Draw

        /// <summary>
        /// Draws the entity onto the viewport.
        /// </summary>
        /// <param name="Viewport">The viewport onto which the entity is being rendered.</param>
        /// <param name="Time">Provides a snapshot of timing values.</param>
        public virtual void Draw(Viewport3D Viewport, GameTime Time) { }

        #endregion

    }
}
